package com.sf.fy.uav.order.controller;

import com.sf.fy.uav.common.response.order.PlaceOrderResponse;
import com.sf.fy.uav.common.utils.Rs;
import com.sf.fy.uav.order.service.IPaySettingService;
import com.sf.fy.uav.order.service.impl.PaySettingServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 支付参数保存 前端控制器
 * </p>
 *
 * @author LTQ
 * @since 2023-06-10
 */
@RestController
public class PaySettingRest {

    @Autowired
    private IPaySettingService iPaySettingService;

    @GetMapping
    public PlaceOrderResponse getPaySettings(@RequestParam String orderId) {
        return iPaySettingService.getPaySettings(orderId);
    }
}
